{% extends 'plain.html' %}

{% block body %}
    <div class="tw:grid tw:h-full tw:place-items-center">
        <div class="tw:min-w-2xl tw:flex tw:flex-col">
            <div class="tw:flex-none tw:flex tw:flex-col tw:gap-2 tw:border tw:rounded-box tw:p-4">
                <h1 class="tw:font-bold tw:text-xl tw:w-full tw:text-center">{% trans '注册完成!' %}</h1>

                <div>
                    {% if am.status == "pending" %}
                        {% trans '请耐心等待管理员审核' %}
                    {% elif am.status == "approved" %}
                        {% trans '您已通过审核。您可以' %}
                        <a class="tw:btn tw:btn-sm" href="{% url 'project:index' %}">
                            {% trans '进入系统' %}
                        </a>
                    {% else %}
                        <span class="tw:text-error">{% trans '审核不通过' %}</span>
                        {% if am.comment %}
                            <br />
                            {% trans '审核备注：' %}
                            {{ am.comment }}
                        {% endif %}
                    {% endif %}
                </div>

                <div class="tw:flex tw:flex-row-reverse">
                    <a class="tw:btn" href="{% url 'user:logout' %}">{% trans '登出' %}</a>
                </div>
            </div>
            <div class="tw:grow tw:min-h-10"></div>
            <div class="tw:flex-none tw:flex tw:justify-center">
                <ul class="tw:steps">
                    <li class="tw:step tw:step-primary">{% trans '注册' %}</li>
                    <li class="tw:step tw:step-primary"><a class="tw:link" href="{% url 'user:signup1' %}">{% trans '完善个人信息' %}</a></li>
                    <li class="tw:step tw:step-primary"><span class="tw:step-icon">🎉</span>{% trans '完成' %}</li>
                </ul>
            </div>
        </div>
    </div>
{% endblock %}


